<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
    <img id="hi" src="IMG_0182.JPG" />
    <button onclick="demo()" value="按钮">按钮</button>

    <script>

        function demo(){
            var nihao=document.getElementById("hi");
            nihao.src="IMG_0201.JPG"
        }
    </script>


</body>
</html>